<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<s:set name="lang" var="lang" value="'application'" />
<s:if test="%{#session.WW_TRANS_I18N_LOCALE != null}">
	<s:set var="lang"
		value="'application_' + #session.WW_TRANS_I18N_LOCALE" />
</s:if>

<s:i18n name="application">
 <sx:head cache="true"/>

<s:form method="post" action="addFavoriteUserSubmit" theme="simple">
	<table width="100%">
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="lable.addfavoriteuser" /> 
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 0px 0px"></div>
			</td>
			<tr>
			<td>
				<table class="common-text">
					<tr>
						<td align="left">
							<div style="margin:0px 0px 5px 0px">
								<s:actionerror cssClass="error-text" />
								<s:actionmessage cssClass="error-text" />
								<s:fielderror cssClass="error-text" />
							</div>
						</td>
					</tr>
			<tr>
			<tr>
				<td class="common-text">
				<s:text name="lable.enteruserid" /> 
					<s:hidden name="userFavoritesUsers.id"/>
				</td>
				<td>
					<sx:autocompleter list="users" name="favoriteUser" listKey="id" listValue="userId" forceValidOption="true" />
				</td>
				</tr>
				<tr>
				<td class="common-text">
				<s:text name="lable.addnote" /> 
				</td>
				<td>
				<s:textarea name="userFavoritesUsers.note" theme="simple" cssClass="textfield" cols="50" rows="4"/>
				<table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
                      <td class="btn-grey-middle1 ">
                      <s:submit name="addToFacorite" value="Add to favorites" theme="simple" cssClass="submit-btn-common"/>
                    </td>
						<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
                    </tr>
                  </table>
				</td>
			</tr>
			<tr>
				<td class="common-text">
				<s:text name="lable.youhave" /> 
					<b> <s:text name="noOfUser" /> </b> 
					<s:text name="lable.favouriteuser" />
				</td>
				<td>
				<s:url action="favoriteUsers" var="favuser"></s:url>
					<s:a href="%{favuser}" cssClass="home-navi-link-bold"><s:text name="lable.gotomyfavoriteuser" /></s:a>
				</td>
			</tr>
	</table>
	</td>
	</tr>
	</table>
</s:form>
</s:i18n>